package com.ruoyi.st.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户对象 st_user
 * 
 * @author ruoyi
 * @date 2024-11-07
 */
public class StUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，唯一标识用户 */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobileNum;

    /** 用户公开ID */
    @Excel(name = "用户公开ID")
    private String userPublicId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMobileNum(String mobileNum) 
    {
        this.mobileNum = mobileNum;
    }

    public String getMobileNum() 
    {
        return mobileNum;
    }
    public void setUserPublicId(String userPublicId) 
    {
        this.userPublicId = userPublicId;
    }

    public String getUserPublicId() 
    {
        return userPublicId;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mobileNum", getMobileNum())
            .append("userPublicId", getUserPublicId())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("username", getUsername())
            .append("password", getPassword())
            .toString();
    }
}
